Repository navigation
fix(id): validate update.requested in set_execution_profile replies (#6777) - #6842
Merged
developing-today[bot] merged 1 commit intoNov 7, 2026
Merged
Conversation
developing-today
Bot
requested review from
a team and
dezren39
as code owners
November 7, 2026 06:47
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today
Bot
deleted the
queue/fallback-6777-set-profile-validate
branch
November 7, 2026 06:51
2 tasks
Member
|
🤖 Agent note · salvage check — PR #6795 is a duplicate of this PR (task 13281)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6777.
Problem
WorldClient::set_execution_profilechecked onlyreply["type"] != "execution_profile"and returned the whole frame — a reply with noupdateat all counted as a successful profile change for both consumers (the operator-facing pretty-print incommands/world.rs, and manifest apply'sSetProfilestep). This is the setter leg of #6635: the getter already extractsupdate.requestedwith a "host returned a malformed execution profile" refusal; the setter never did (found by the #6670 Phase 4 closing inventory, disposition (a)).Fix
Following the file's validated-reply pattern (
parse_caps_ceiling_reply, #6636):WorldClient::parse_set_execution_profile_reply: non-execution_profileframes bail with the host's message (unchanged refusal behavior); otherwiseupdate.requestedmust be present and decode ascrate::world_limits::WorldExecutionProfile, else bail "host returned a malformed execution profile" — the getter's exact error, so setter and getter agree on what a valid frame is.set_execution_profilenow routes its reply through the parser.Verification (laptop)
set_execution_profile_reply_requires_a_valid_requested: well-formed frame returned unchanged; missing update / missing / null / mistypedrequestedall refused with the malformed-profile error; error frames still bail with the host's message. Passes.cargo test --lib world_net: 45 passed (all sibling reply parsers and client tests green).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.